#include<stdio.h>
void print(int a[][3])
{
    int i,j;
    for(i=0;i<=1;i++)
    {
        for(j=0;j<=2;j++)
        {
            printf("%d ",a[i][j]);
        }
        printf("\n");
    }
    printf("\n");

}

int main()
{
    int arr1[2][3]={{1,2,3},{4,5,6}};
    printf("Values in array1 by row are:\n");
    print(arr1);
    int arr2[2][3]={1,2,3,4,5};
    printf("Values in array2 by row are:\n");
    print(arr2);
    int arr3[2][3]={{1,2},{4}};
    printf("Values in array3 by row are:\n");
    print(arr3);

    return 0;
}








